import os

def redirect___file__(module):
    this_file = __file__
    other_file = module["__file__"]
    new_file = os.sep.join(this_file.split(os.sep)[:-2] + other_file.split(os.sep)[-2:])
    module["__file__"] = new_file
